import router from './router'
import store from './store'
// import { Message } from 'element-ui'

router.beforeEach(async (to, from, next) => {
  console.log('router跳转开始', from)
  next()
})

router.afterEach((to, from) => {
  console.log('router跳转结束', to)
  store.commit('update', { to, from })
})
